import request from '@/utils/request'

// 查询强行派单设置列表
export function listHawk(query) {
  return request({
    url: '/vehicle/hawk/list',
    method: 'get',
    params: query
  })
}

// 查询强行派单设置详细
export function getHawk(hawkId) {
  return request({
    url: '/vehicle/hawk/' + hawkId,
    method: 'get'
  })
}

// 新增强行派单设置
export function addHawk(data) {
  return request({
    url: '/vehicle/hawk',
    method: 'post',
    data: data
  })
}

// 修改强行派单设置
export function updateHawk(data) {
  return request({
    url: '/vehicle/hawk',
    method: 'put',
    data: data
  })
}

// 删除强行派单设置
export function delHawk(hawkId) {
  return request({
    url: '/vehicle/hawk/' + hawkId,
    method: 'delete'
  })
}
